package com.mc.kotlinlearn

/**
 * Created by zhangzhenguo on 2018/1/10.
 */
interface Animal {
    fun bark()
}

class Dog : Animal {
    override fun bark() {
        println("wang wang")
    }
}

class Cat(animal: Animal) : Animal by animal {

}

fun main(args: Array<String>) {
    Cat(Dog()).bark()
}